index.html.vue 57 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262
  1. <template>
  2. <div>
  3. <HomePageHead></HomePageHead>
  4. <HomePageNavigation></HomePageNavigation>
  5. <HomeSecondaryHeading :titleData="pageData" :pinyinid="routeId"></HomeSecondaryHeading>
  6. <div class="farmingPartOne">
  7. <div class="inner">
  8. <div class="innerLeft" v-if="newsData.length > 0">
  9. <div class="title">
  10. <h3>
  11. <NuxtLink :href="getLinkPath(newsData[0])" v-if="newsData[0]" :title="newsData[0].alias">
  12. {{ newsData[0].alias }}
  13. </NuxtLink>
  14. <span>
  15. <!-- <NuxtLink :href="getLinkPath(newsData[0])" v-if="newsData[0]"
  16. :title="newsData[0].title">
  17. 查看更多
  18. </NuxtLink> -->
  19. </span>
  20. </h3>
  21. </div>
  22. <div class="leftTop">
  23. <div class="leftTopPhoto left" v-if="newsData[0].data[0]">
  24. <NuxtLink :href="getLinkPathDetail(newsData[0].data[0])" :title="newsData[0].data[0].title">
  25. <img :src="newsData[0].data[0].imgurl" :alt="newsData[0].data[0].title">
  26. <span>{{ newsData[0].data[0].title }}</span>
  27. </NuxtLink>
  28. </div>
  29. <div class="leftTopPhoto left" v-else></div>
  30. <ul class="left">
  31. <li v-for="item in newsData[0].data3">
  32. <em></em>
  33. <span>
  34. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  35. {{ item.title }}
  36. </NuxtLink>
  37. </span>
  38. </li>
  39. </ul>
  40. </div>
  41. <ul class="leftBottom" v-if="newsData[0].data2[0] != null">
  42. <li v-for="item in newsData[0].data2">
  43. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  44. <img :src="item.imgurl" :alt="item.title">
  45. </NuxtLink>
  46. <p>
  47. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  48. {{ item.title }}
  49. </NuxtLink>
  50. </p>
  51. </li>
  52. </ul>
  53. </div>
  54. <div class="innerRight" v-if="newsData.length >= 2">
  55. <div class="title">
  56. <h3>
  57. <NuxtLink :href="getLinkPath(newsData[1])" v-if="newsData[1]" :title="newsData[1].alias">
  58. {{ newsData[1].alias }}
  59. </NuxtLink>
  60. <span>
  61. <!-- <NuxtLink :href="getLinkPath(newsData[1])" v-if="newsData[1]"
  62. :title="newsData[1].title">
  63. 查看更多
  64. </NuxtLink> -->
  65. </span>
  66. </h3>
  67. </div>
  68. <ul class="rightList" :class="{ 'add_height': newsData[1] && newsData[1].data.length === 0 }">
  69. <li v-for="item in newsData[1].data">
  70. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  71. <img class="left" :src="item.imgurl" :alt="item.title">
  72. </NuxtLink>
  73. <p class="left">
  74. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  75. {{ item.title }}
  76. </NuxtLink>
  77. </p>
  78. </li>
  79. </ul>
  80. </div>
  81. </div>
  82. </div>
  83. <HomeTopTen :imgurl="adImg1" v-if="adImg1"></HomeTopTen>
  84. <div class="farmingPartTwo" v-if="newsData.length >= 3">
  85. <div class="inner">
  86. <div class="farmer" v-if="newsData.length >= 3">
  87. <div class="title">
  88. <h3>
  89. <NuxtLink :href="getLinkPath(newsData[2])" v-if="newsData[2]" :title="newsData[2].alias">
  90. {{ newsData[2].alias }}
  91. </NuxtLink>
  92. <span>
  93. <!-- <NuxtLink :href="getLinkPath(newsData[2])" v-if="newsData[2]"
  94. :title="newsData[2].title">
  95. 查看更多
  96. </NuxtLink> -->
  97. </span>
  98. </h3>
  99. </div>
  100. <div class="PartTwoPhoto">
  101. <div v-if="newsData[2].data[0]">
  102. <NuxtLink :href="getLinkPathDetail(newsData[2].data[0])" :title="newsData[2].data[0].title">
  103. <img :src="newsData[2].data[0].imgurl" :alt="newsData[2].data[0].title">
  104. <span>{{ newsData[2].data[0].title }}</span>
  105. </NuxtLink>
  106. </div>
  107. </div>
  108. <ul class="PartTwoList">
  109. <li v-for="item in newsData[2].data2">
  110. <em></em>
  111. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  112. {{ item.title }}
  113. </NuxtLink>
  114. </li>
  115. </ul>
  116. </div>
  117. <div class="farmer" v-if="newsData.length >= 4">
  118. <div class="title">
  119. <h3>
  120. <NuxtLink :href="getLinkPath(newsData[3])" v-if="newsData[3]" :title="newsData[3].alias">
  121. {{ newsData[3].alias }}
  122. </NuxtLink>
  123. <span>
  124. <!-- <NuxtLink :href="getLinkPath(newsData[3])" v-if="newsData[3]"
  125. :title="newsData[3].title">
  126. 查看更多
  127. </NuxtLink> -->
  128. </span>
  129. </h3>
  130. </div>
  131. <div class="PartTwoPhoto">
  132. <div v-if="newsData[3].data[0]">
  133. <NuxtLink :href="getLinkPathDetail(newsData[3].data[0])" :title="newsData[3].data[0].title">
  134. <img :src="newsData[3].data[0].imgurl" :alt="newsData[3].data[0].title">
  135. <span>{{ newsData[3].data[0].title }}</span>
  136. </NuxtLink>
  137. </div>
  138. </div>
  139. <ul class="PartTwoList">
  140. <li v-for="item in newsData[3].data2">
  141. <em></em>
  142. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  143. {{ item.title }}
  144. </NuxtLink>
  145. </li>
  146. </ul>
  147. </div>
  148. <div class="farmer" v-if="newsData.length >= 5">
  149. <div class="title">
  150. <h3>
  151. <NuxtLink :href="getLinkPath(newsData[4])" v-if="newsData[4]" :title="newsData[4].alias">
  152. {{ newsData[4].alias }}
  153. </NuxtLink>
  154. <span>
  155. <!-- <NuxtLink :href="getLinkPath(newsData[4])" v-if="newsData[4]"
  156. :title="newsData[4].title">
  157. 查看更多
  158. </NuxtLink> -->
  159. </span>
  160. </h3>
  161. </div>
  162. <div class="PartTwoPhoto">
  163. <div v-if="newsData[4].data[0]">
  164. <NuxtLink :href="getLinkPathDetail(newsData[4].data[0])" :title="newsData[4].data[0].title">
  165. <img :src="newsData[4].data[0].imgurl" :alt="newsData[4].data[0].title">
  166. <span>{{ newsData[4].data[0].title }}</span>
  167. </NuxtLink>
  168. </div>
  169. </div>
  170. <ul class="PartTwoList">
  171. <li v-for="item in newsData[4].data2">
  172. <em></em>
  173. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  174. {{ item.title }}
  175. </NuxtLink>
  176. </li>
  177. </ul>
  178. </div>
  179. <div class="farmer" v-if="goodsData.length > 0">
  180. <div class="title">
  181. <h3>
  182. <NuxtLink :href="getLinkPath(goodsData[0])" v-if="goodsData[0]" :title="goodsData[0].alias">
  183. {{ goodsData[0].alias }}
  184. </NuxtLink>
  185. <span>
  186. <!-- <NuxtLink :href="getLinkPath(goodsData[0])" v-if="goodsData[0]"
  187. :title="goodsData[0].alias">
  188. 查看更多
  189. </NuxtLink> -->
  190. </span>
  191. </h3>
  192. </div>
  193. <div class="PartTwoPhoto">
  194. <div v-if="goodsData[0].data[0]">
  195. <NuxtLink :href="getLinkPathDetail(goodsData[0].data[0])"
  196. :title="goodsData[0].data[0].name">
  197. <img :src="goodsData[0].data[0].imgurl" :alt="goodsData[0].data[0].name">
  198. <span>{{ goodsData[0].data[0].name }}</span>
  199. </NuxtLink>
  200. </div>
  201. </div>
  202. <ul class="PartTwoList">
  203. <li v-for="item in goodsData[0].data2">
  204. <em></em>
  205. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  206. {{ item.name }}
  207. </NuxtLink>
  208. </li>
  209. </ul>
  210. </div>
  211. </div>
  212. </div>
  213. <HomeTopTen :imgurl="adImg2" v-if="adImg2"></HomeTopTen>
  214. <div class="zixuntuijian" v-if="newsData.length >= 6">
  215. <div class="inner">
  216. <div class="innerLeft">
  217. <div class="zixunTop">
  218. <div class="zixunLeft" v-if="newsData.length >= 6">
  219. <div class="title">
  220. <h3>
  221. <NuxtLink :href="getLinkPath(newsData[5])" v-if="newsData[5]"
  222. :title="newsData[5].alias">
  223. {{ newsData[5].alias }}
  224. </NuxtLink>
  225. <span>
  226. <!-- <NuxtLink :href="getLinkPath(newsData[5])" v-if="newsData[5]"
  227. :title="newsData[5].title">
  228. 查看更多
  229. </NuxtLink> -->
  230. </span>
  231. </h3>
  232. </div>
  233. <!-- <ul class="photo_text" v-if="newsData[5].data[0] != null" > -->
  234. <ul class="photo_text" :class="{ 'add_height':newsData[5].data.length === 0 }" >
  235. <li v-for="item in newsData[5].data">
  236. <article>
  237. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  238. <img :src="item.imgurl" :alt="item.title">
  239. </NuxtLink>
  240. <div>
  241. <h5>
  242. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  243. {{ item.title }}
  244. </NuxtLink>
  245. </h5>
  246. <p>
  247. <span>{{ item.author }}</span>
  248. <span>{{ getTime(item.updated_at, 'month', 1) }}</span>
  249. </p>
  250. </div>
  251. </article>
  252. </li>
  253. <li v-for="item in newsData[5].data2">
  254. <article>
  255. <em></em>
  256. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  257. {{ item.title }}
  258. </NuxtLink>
  259. </article>
  260. </li>
  261. </ul>
  262. </div>
  263. <div class="zixunRight" v-if="newsData.length >= 7">
  264. <div class="title">
  265. <h3>
  266. <NuxtLink :href="getLinkPath(newsData[6])" v-if="newsData[6]"
  267. :title="newsData[6].alias">
  268. {{ newsData[6].alias }}
  269. </NuxtLink>
  270. <span>
  271. <!-- <NuxtLink :href="getLinkPath(newsData[6])" v-if="newsData[6]"
  272. :title="newsData[6].title">
  273. 查看更多
  274. </NuxtLink> -->
  275. </span>
  276. </h3>
  277. </div>
  278. <div class="towPic">
  279. <div v-for="item in newsData[6].data" class="picBox">
  280. <div>
  281. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  282. <img :src="item.imgurl" :alt="item.title">
  283. <span>{{ item.title }}</span>
  284. </NuxtLink>
  285. </div>
  286. </div>
  287. </div>
  288. <ul class="photo_text" :class="{ 'add_height':newsData[6].data2.length === 0 }">
  289. <li v-for="item in newsData[6].data2">
  290. <article>
  291. <em></em>
  292. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  293. {{ item.title }}
  294. </NuxtLink>
  295. </article>
  296. </li>
  297. </ul>
  298. </div>
  299. </div>
  300. <div class="zixunBottom" v-if="newsData.length >= 8">
  301. <NuxtLink :href="getLinkPathDetail(newsData[7].data[0])"
  302. v-if="newsData[7].data[0] && hoverStatus == 0">
  303. <img class="left" :src="newsData[7].data[0].imgurl" :alt="newsData[7].data[0].title">
  304. </NuxtLink>
  305. <NuxtLink :href="getLinkPathDetail(newsData[7].data[1])"
  306. v-if="newsData[7].data[1] && hoverStatus == 1">
  307. <img class="left" :src="newsData[7].data[1].imgurl" :alt="newsData[7].data[1].title">
  308. </NuxtLink>
  309. <NuxtLink :href="getLinkPathDetail(newsData[7].data[2])"
  310. v-if="newsData[7].data[2] && hoverStatus == 2">
  311. <img class="left" :src="newsData[7].data[2].imgurl" :alt="newsData[7].data[2].title">
  312. </NuxtLink>
  313. <NuxtLink :href="getLinkPathDetail(newsData[7].data[3])"
  314. v-if="newsData[7].data[3] && hoverStatus == 3">
  315. <img class="left" :src="newsData[7].data[3].imgurl" :alt="newsData[7].data[3].title">
  316. </NuxtLink>
  317. <NuxtLink :href="getLinkPathDetail(newsData[7].data[4])"
  318. v-if="newsData[7].data[4] && hoverStatus == 4">
  319. <img class="left" :src="newsData[7].data[4].imgurl" :alt="newsData[7].data[4].title">
  320. </NuxtLink>
  321. <NuxtLink :href="getLinkPathDetail(newsData[7].data[5])"
  322. v-if="newsData[7].data[5] && hoverStatus == 5">
  323. <img class="left" :src="newsData[7].data[5].imgurl" :alt="newsData[7].data[5].title">
  324. </NuxtLink>
  325. <ul class="leftList left">
  326. <li v-for="(item, index) in newsData[7].data" @mouseenter="qhPic(index)">
  327. <h4>
  328. <em></em>
  329. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  330. {{ item.title }}
  331. </NuxtLink>
  332. </h4>
  333. </li>
  334. </ul>
  335. </div>
  336. </div>
  337. <div class="innerRight " v-if="newsData.length >= 8">
  338. <div class="title">
  339. <h3 class="phone_head_1">
  340. <NuxtLink :href="getLinkPath(newsData[7])" v-if="newsData[7]" :title="newsData[7].alias">
  341. {{ newsData[7].alias }}
  342. </NuxtLink>
  343. <span>
  344. <!-- <NuxtLink :href="getLinkPath(newsData[7])" v-if="newsData[7]"
  345. :title="newsData[7].title">
  346. 查看更多
  347. </NuxtLink> -->
  348. </span>
  349. </h3>
  350. </div>
  351. <ul class="information" :class="{ 'add_height':newsData[7].data.length === 0 }">
  352. <li v-for="item in newsData[7].data2">
  353. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  354. <img :src="item.imgurl" :alt="item.title">
  355. </NuxtLink>
  356. <div class="text">
  357. <h5>
  358. <NuxtLink :href="getLinkPathDetail(item)" :title="item.title">
  359. {{ item.title }}
  360. </NuxtLink>
  361. </h5>
  362. <p>{{ item.author }}</p>
  363. </div>
  364. </li>
  365. </ul>
  366. </div>
  367. </div>
  368. </div>
  369. <div class="zixuntuijian" v-if="goodsData.length > 1">
  370. <div class="inner">
  371. <div class="innerLeft">
  372. <div class="zixunTop">
  373. <div class="zixunLeft" v-if="goodsData.length > 1">
  374. <div class="title">
  375. <h3>
  376. <NuxtLink :href="getLinkPath(goodsData[1])" v-if="goodsData[1]"
  377. :title="goodsData[1].alias">
  378. {{ goodsData[1].alias }}
  379. </NuxtLink>
  380. <span>
  381. <!-- <NuxtLink :href="getLinkPath(goodsData[1])" v-if="goodsData[1]"
  382. :title="goodsData[1].name">
  383. 查看更多
  384. </NuxtLink> -->
  385. </span>
  386. </h3>
  387. </div>
  388. <ul class="photo_text" :class="{ 'add_height':goodsData[1].data.length === 0 }">
  389. <li v-for="item in goodsData[1].data">
  390. <article>
  391. <NuxtLink :href="getLinkPathDetail(item)" :title="item.name">
  392. <img :src="item.imgurl" :alt="item.name">
  393. </NuxtLink>
  394. <div>
  395. <h5>
  396. <NuxtLink :href="getLinkPathDetail(item)" :title="item.name">
  397. {{ item.name }}
  398. </NuxtLink>
  399. </h5>
  400. <p>
  401. <span>{{ item.author }}</span>
  402. <span>{{ getTime(item.updated_at, 'month', 1) }}</span>
  403. </p>
  404. </div>
  405. </article>
  406. </li>
  407. <li v-for="item in goodsData[1].data2">
  408. <article>
  409. <em></em>
  410. <NuxtLink :href="getLinkPathDetail(item)" :title="item.name">
  411. {{ item.name }}
  412. </NuxtLink>
  413. </article>
  414. </li>
  415. </ul>
  416. </div>
  417. <div class="zixunRight" v-if="goodsData.length > 2">
  418. <div class="title">
  419. <h3>
  420. <NuxtLink :href="getLinkPath(goodsData[2])" v-if="goodsData[2]"
  421. :title="goodsData[2].alias">
  422. {{ goodsData[2].alias }}
  423. </NuxtLink>
  424. <span>
  425. <!-- <NuxtLink :href="getLinkPath(goodsData[2])" v-if="goodsData[2]"
  426. :title="goodsData[2].title">
  427. 查看更多
  428. </NuxtLink> -->
  429. </span>
  430. </h3>
  431. </div>
  432. <div class="towPic">
  433. <div v-for="item in goodsData[2].data" class="picBox">
  434. <div>
  435. <NuxtLink :href="getLinkPathDetail(item)" :title="item.name">
  436. <img :src="item.imgurl" :alt="item.name">
  437. </NuxtLink>
  438. </div>
  439. </div>
  440. </div>
  441. <ul class="photo_text">
  442. <li v-for="item in goodsData[2].data2">
  443. <article>
  444. <em></em>
  445. <NuxtLink :href="getLinkPathDetail(item)" :title="item.name">
  446. {{ item.name }}
  447. </NuxtLink>
  448. </article>
  449. </li>
  450. </ul>
  451. </div>
  452. </div>
  453. <div class="zixunBottom" v-if="goodsData[1].data3">
  454. <NuxtLink :href="getLinkPathDetail(goodsData[1].data3[0])"
  455. v-if="goodsData[1].data3[0] && hoverStatus == 0">
  456. <img class="left" :src="goodsData[1].data3[0].imgurl" :alt="goodsData[1].data3[0].title">
  457. </NuxtLink>
  458. <NuxtLink :href="getLinkPathDetail(goodsData[1].data3[1])"
  459. v-if="goodsData[1].data3[1] && hoverStatus == 1">
  460. <img class="left" :src="goodsData[1].data3[1].imgurl" :alt="goodsData[1].data3[1].title">
  461. </NuxtLink>
  462. <NuxtLink :href="getLinkPathDetail(goodsData[1].data3[2])"
  463. v-if="goodsData[1].data3[2] && hoverStatus == 2">
  464. <img class="left" :src="goodsData[1].data3[2].imgurl" :alt="goodsData[1].data3[2].title">
  465. </NuxtLink>
  466. <NuxtLink :href="getLinkPathDetail(goodsData[1].data3[3])"
  467. v-if="goodsData[1].data3[3] && hoverStatus == 3">
  468. <img class="left" :src="goodsData[1].data3[3].imgurl" :alt="goodsData[1].data3[3].title">
  469. </NuxtLink>
  470. <NuxtLink :href="getLinkPathDetail(goodsData[1].data3[4])"
  471. v-if="goodsData[1].data3[4] && hoverStatus == 4">
  472. <img class="left" :src="goodsData[1].data3[4].imgurl" :alt="goodsData[1].data3[4].title">
  473. </NuxtLink>
  474. <NuxtLink :href="getLinkPathDetail(goodsData[1].data3[5])"
  475. v-if="goodsData[1].data3[5] && hoverStatus == 5">
  476. <img class="left" :src="goodsData[1].data3[5].imgurl" :alt="goodsData[1].data3[5].title">
  477. </NuxtLink>
  478. <ul class="leftList left">
  479. <li v-for="(item, index) in goodsData[1].data3" @mouseenter="qhPic(index)">
  480. <h4>
  481. <em></em>
  482. <NuxtLink :href="getLinkPathDetail(item)" :title="item.name">
  483. {{ item.name }}
  484. </NuxtLink>
  485. </h4>
  486. </li>
  487. </ul>
  488. </div>
  489. </div>
  490. <div class="innerRight " v-if="goodsData.length > 3">
  491. <div class="title">
  492. <h3>
  493. <NuxtLink :href="getLinkPath(goodsData[3])" v-if="goodsData[3]" :title="goodsData[3].alias">
  494. {{ goodsData[3].alias }}
  495. </NuxtLink>
  496. <span>
  497. <!-- <NuxtLink :href="getLinkPath(goodsData[3])" v-if="goodsData[3]"
  498. :title="goodsData[3].title">
  499. 查看更多
  500. </NuxtLink> -->
  501. </span>
  502. </h3>
  503. </div>
  504. <ul class="information" >
  505. <li v-for="item in goodsData[3].data">
  506. <NuxtLink :href="getLinkPathDetail(item)" :title="item.name">
  507. <img :src="item.imgurl" :alt="item.name">
  508. </NuxtLink>
  509. <div class="text">
  510. <h5>
  511. <NuxtLink :href="getLinkPathDetail(item)" :title="item.name">
  512. {{ item.name }}
  513. </NuxtLink>
  514. </h5>
  515. <p>{{ item.author }}</p>
  516. </div>
  517. </li>
  518. </ul>
  519. </div>
  520. </div>
  521. </div>
  522. <HomeTopTen :imgurl="adImg3" v-if="adImg3"></HomeTopTen>
  523. <div class="part_1"></div>
  524. <!-- 十强称号logo -->
  525. <HomeTopTen :imgurl="adImg4" v-if="adImg4"></HomeTopTen>
  526. <!-- 页脚部分 -->
  527. <HomeFoot1></HomeFoot1>
  528. </div>
  529. </template>
  530. <script setup>
  531. //0.加载页面依赖 start ---------------------------------------->
  532. import { ref, onMounted } from 'vue';
  533. import { ElMessage } from 'element-plus';
  534. //格式化跳转路径 - 标题
  535. //首页分类栏目标题,不需要考虑外链
  536. const getLinkPath = (item) => {
  537. //return `/${item.url}/1.html`;
  538. //return `/newsList/${item.cid}?page=1`;
  539. return `/${item.aLIas_pinyin}/list-1.html`;
  540. }
  541. //首页跳转到详情,这里需要考虑外链
  542. const getLinkPathDetail = (item) => {
  543. if (item.islink == 1) {
  544. return `${item.linkurl}`;
  545. } else {
  546. //return `/${item.aLIas_pinyin}/${item.id}`;
  547. //return `/newsDetail/${item.id}`
  548. return `/${item.pinyin}/${item.id}.html`;
  549. }
  550. }
  551. //0.加载页面依赖 end ---------------------------------------->
  552. //1.获得路由id start ---------------------------------------->
  553. const route = useRoute();
  554. //获得当前的完整路径
  555. const fullPath = route.path;
  556. //拆分,取出来中间这一段,然后提取数字部分
  557. const segments = fullPath.split('/');
  558. const targetSegment = segments[1];
  559. //let routeId = 11 //排除路径错误可以打开这个
  560. //const numberPart = targetSegment.match(/\d+$/)?.[0];
  561. //let routeId = numberPart;
  562. let routeId;
  563. //通过导航路径反向查询导航id
  564. const getRouteId = await requestDataPromise('/web/getWebsiteRoute', {
  565. method: 'GET',
  566. query: {
  567. 'pinyin': targetSegment,
  568. },
  569. });
  570. if (getRouteId.code == 200) {
  571. routeId = getRouteId.data.category_id
  572. } else {
  573. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  574. console.log("错误位置:通过url路径查询导航池id")
  575. console.log("后端错误反馈:", getRouteId.message)
  576. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  577. }
  578. //1.获得路由id end ---------------------------------------->
  579. //2.页面交互效果 start ---------------------------------------->
  580. //2.1 新闻图片切换
  581. const hoverStatus = ref(0)
  582. const qhPic = function (num) {
  583. console.log(num)
  584. hoverStatus.value = num;
  585. }
  586. //2.2 选项卡切换
  587. let showTabs = ref(1)
  588. let qhtabs = function (number) {
  589. console.log(number)
  590. showTabs.value = number
  591. }
  592. //2.3 展示广告
  593. let adImg1 = ref({})
  594. let adImg2 = ref({})
  595. let adImg3 = ref({})
  596. let adImg4 = ref({})
  597. onMounted(async () => {
  598. //从客户端获取行政职能部门 加快打开速度
  599. const { $webUrl, $CwebUrl } = useNuxtApp();
  600. //广告1
  601. let url = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_category_0001`
  602. const responseAd1 = await fetch(url, {
  603. headers: {
  604. 'Content-Type': 'application/json',
  605. 'Userurl': $CwebUrl,
  606. 'Origin': $CwebUrl
  607. }
  608. });
  609. const resultAd1 = await responseAd1.json();
  610. adImg1.value = resultAd1.data[0];
  611. //广告2
  612. let url2 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_category_0002`
  613. const responseAd2 = await fetch(url2, {
  614. headers: {
  615. 'Content-Type': 'application/json',
  616. 'Userurl': $CwebUrl,
  617. 'Origin': $CwebUrl
  618. }
  619. });
  620. const resultAd2 = await responseAd2.json();
  621. adImg2.value = resultAd2.data[0];
  622. //广告3
  623. let url3 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_category_0003`
  624. const responseAd3 = await fetch(url3, {
  625. headers: {
  626. 'Content-Type': 'application/json',
  627. 'Userurl': $CwebUrl,
  628. 'Origin': $CwebUrl
  629. }
  630. });
  631. const resultAd3 = await responseAd3.json();
  632. adImg3.value = resultAd3.data[0];
  633. //广告4
  634. let url4 = `${$webUrl}/web/getWebsiteAdvertisement?ad_tag=snzxw_category_0004`
  635. const responseAd4 = await fetch(url4, {
  636. headers: {
  637. 'Content-Type': 'application/json',
  638. 'Userurl': $CwebUrl,
  639. 'Origin': $CwebUrl
  640. }
  641. });
  642. const resultAd4 = await responseAd4.json();
  643. adImg4.value = resultAd4.data[0];
  644. })
  645. //2.页面交互效果 end ---------------------------------------->
  646. //3.渲染页面数据 start ---------------------------------------->
  647. //3.1 该页面上所有的导航池 转为动态数据
  648. const pageCategory = ref([]);
  649. //3.2 该页面上需要渲染的所有数据
  650. const pageData = ref([
  651. // { id: 0, data: [], data2: [], title: "", cid: "" },
  652. // { id: 1, data: [], title: "", cid: "" },
  653. // { id: 2, data: [], title: "", cid: "" },
  654. // { id: 3, data: [], title: "", cid: "" },
  655. // { id: 4, data: [], title: "", cid: "" },
  656. // { id: 5, data: [], title: "", cid: "" },
  657. // { id: 6, data: [], title: "", cid: "" },
  658. // { id: 7, data: [], title: "", cid: "" },
  659. // { id: 8, data: [], title: "", cid: "" },
  660. // { id: 9, data: [], title: "", cid: "" },
  661. // { id: 10, data: [], title: "", cid: "" },
  662. ])
  663. // 商品
  664. const goodsData = ref([]);
  665. const newsData = ref([])
  666. const navSize = ref("");
  667. //3.3 获取所有导航
  668. try {
  669. const navigateData = await requestDataPromise('/web/getWebsiteModelCategory', {
  670. method: 'GET',
  671. query: {
  672. 'placeid': 1,
  673. 'pid': routeId,
  674. 'num': 8
  675. },
  676. });
  677. // console.log('navigateData1111111', navigateData)
  678. if (navigateData.code == 200) {
  679. // 遍历可用的导航池放到页面中
  680. for (let index in navigateData.data) {
  681. let data = {
  682. title: navigateData.data[index].name,
  683. cid: navigateData.data[index].category_id,
  684. children_count: navigateData.data[index].children_count,
  685. alias: navigateData.data[index].alias,
  686. aLIas_pinyin: targetSegment + "/" + navigateData.data[index].aLIas_pinyin,
  687. data: [],
  688. data1: [],
  689. data2: [],
  690. data3: [],
  691. data4: [],
  692. category_id1: "",
  693. category_id2: "",
  694. category_id3: "",
  695. category_id4: "",
  696. title1: "",
  697. title2: "",
  698. title3: "",
  699. title4: ""
  700. };
  701. if (navigateData.data[index].is_url == 1) {
  702. // 处理 URL 的逻辑
  703. } else {
  704. if (navigateData.data[index].type == 1) {
  705. newsData.value.push(data);
  706. } else if (navigateData.data[index].type == 2) {
  707. goodsData.value.push(data);
  708. }
  709. //每个页面最多8个模块
  710. pageData.value.push(data);
  711. }
  712. }
  713. // console.log("导航池11111newsData", newsData.value);
  714. // console.log("导航池11111goods", goodsData.value);
  715. // console.log("导航池11111pageData", pageData.value);
  716. let goodsJson = []
  717. for (let i = 0; i < goodsData.value.length; i++) {
  718. if (i == 0) {
  719. goodsJson.push({ "catid": goodsData.value[0].cid + ",0,7" });
  720. } else if (i == 1) {
  721. goodsJson.push({ "catid": goodsData.value[1].cid + ",0,9" });
  722. } else if (i == 2) {
  723. goodsJson.push({ "catid": goodsData.value[2].cid + ",0,5" });
  724. } else if (i == 3) {
  725. goodsJson.push({ "catid": goodsData.value[3].cid + ",0,4" });
  726. }
  727. }
  728. let goodsJsonString = JSON.stringify(goodsJson);
  729. getPageGoodspageData(goodsJsonString);
  730. //导航池加载完毕,开始申请模块数据
  731. let getJson = [
  732. // { "parent": routeId + ",0,0", "child": newsData.value[0].cid + ",5,8" },//模块1理论前沿
  733. // { "parent": routeId + ",0,0", "child": newsData.value[1].cid + ",5,0" },//模块2典型经验
  734. // { "parent": routeId + ",0,0", "child": newsData.value[2].cid + ",1,6" },//模块3农业天地
  735. // { "parent": routeId + ",0,0", "child": newsData.value[3].cid + ",1,6" },//模块4美丽乡村
  736. // { "parent": routeId + ",0,0", "child": newsData.value[4].cid + ",1,6" },//模块5农民之家
  737. // { "parent": routeId + ",0,0", "child": newsData.value[5].cid + ",6,3" },//模块6农业天地
  738. // { "parent": routeId + ",0,0", "child": newsData.value[6].cid + ",2,3" },//模块7农村建设
  739. // { "parent": routeId + ",0,0", "child": newsData.value[7].cid + ",4,0" },//模块8高端资讯
  740. ]
  741. for (let i = 0; i < newsData.value.length; i++) {
  742. if (i == 0) {
  743. getJson.push({ "parent": routeId + ",0,0", "child": newsData.value[0].cid + ",5,8" });//模块1理论前沿
  744. } else if (i == 1) {
  745. getJson.push({ "parent": routeId + ",0,0", "child": newsData.value[1].cid + ",5,0" });//模块2典型经验
  746. } else if (i == 2) {
  747. getJson.push({ "parent": routeId + ",0,0", "child": newsData.value[2].cid + ",1,6" });//模块3农业天地
  748. } else if (i == 3) {
  749. getJson.push({ "parent": routeId + ",0,0", "child": newsData.value[3].cid + ",1,6" });//模块4美丽乡村
  750. } else if (i == 4) {
  751. getJson.push({ "parent": routeId + ",0,0", "child": newsData.value[4].cid + ",1,6" });//模块5农民之家
  752. } else if (i == 5) {
  753. getJson.push({ "parent": routeId + ",0,0", "child": newsData.value[5].cid + ",6,3" });//模块6农业天地
  754. } else if (i == 6) {
  755. getJson.push({ "parent": routeId + ",0,0", "child": newsData.value[6].cid + ",2,3" });//模块7农村建设
  756. } else if (i == 7) {
  757. getJson.push({ "parent": routeId + ",0,0", "child": newsData.value[7].cid + ",4,0" });//模块8高端资讯
  758. }
  759. }
  760. let jsonString = JSON.stringify(getJson);
  761. getPagepageData(jsonString);
  762. } else {
  763. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  764. // console.log("错误位置:分类页导航池")
  765. // console.log("后端错误反馈:", navigateData.message)
  766. // console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  767. }
  768. } catch (error) {
  769. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  770. console.log("错误位置:分类页导航渲染阶段")
  771. console.log("错误:导航池渲染执行接口出错!请检查首页的14的模块的具体执行方法!")
  772. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  773. }
  774. // 获取商品数据 start--------------------------------------->
  775. async function getPageGoodspageData(goodsJsonString) {
  776. const mkdata = await requestDataPromise('/web/getWebsiteCatidshop', {
  777. method: 'GET',
  778. query: {
  779. 'catid': goodsJsonString
  780. },
  781. });
  782. // console.log("获取商品数据", mkdata);
  783. if (mkdata.code == 200) {
  784. //模块1
  785. for (let index in mkdata.data[0]) {
  786. if (index < 1) {
  787. goodsData.value[0].data.push(mkdata.data[0][index]);
  788. } else {
  789. goodsData.value[0].data2.push(mkdata.data[0][index]);
  790. }
  791. }
  792. //模块2
  793. for (let index in mkdata.data[1]) {
  794. if (index < 1) {
  795. goodsData.value[1].data.push(mkdata.data[1][index]);
  796. } else if (index < 4) {
  797. goodsData.value[1].data2.push(mkdata.data[1][index]);
  798. } else {
  799. goodsData.value[1].data3.push(mkdata.data[1][index]);
  800. }
  801. }
  802. // 模块3
  803. for (let index in mkdata.data[2]) {
  804. if (index < 2) {
  805. goodsData.value[2].data.push(mkdata.data[2][index]);
  806. } else {
  807. goodsData.value[2].data2.push(mkdata.data[2][index]);
  808. }
  809. }
  810. // 模块411
  811. // console.log("模块4-----------------------------------------------", mkdata);
  812. goodsData.value[3].data = mkdata.data[3];
  813. }
  814. }
  815. // 获取商品数据 end----------------------------------------->
  816. // 获取资讯数据 start----------------------------------------->
  817. async function getPagepageData(jsonString) {
  818. const mkdata = await requestDataPromise('/web/getWebsiteAllArticle', {
  819. method: 'GET',
  820. query: {
  821. 'id': jsonString
  822. },
  823. });
  824. if (mkdata.code == 200) {
  825. console.log(778899)
  826. console.log(mkdata.data)
  827. //模块1理论前沿
  828. if (mkdata.data[0].child.imgnum.length > 0) {
  829. newsData.value[0].data.push(mkdata.data[0].child.imgnum[0]);
  830. }
  831. if (mkdata.data[0].child.imgnum.length > 1) {
  832. newsData.value[0].data2.push(mkdata.data[0].child.imgnum[1]);
  833. }
  834. if (mkdata.data[0].child.imgnum.length > 2) {
  835. newsData.value[0].data2.push(mkdata.data[0].child.imgnum[2]);
  836. }
  837. if (mkdata.data[0].child.imgnum.length > 3) {
  838. newsData.value[0].data2.push(mkdata.data[0].child.imgnum[3]);
  839. }
  840. if (mkdata.data[0].child.imgnum.length > 4) {
  841. newsData.value[0].data2.push(mkdata.data[0].child.imgnum[4]);
  842. }
  843. newsData.value[0].data3 = mkdata.data[0].child.textnum;
  844. //模块2典型经验
  845. newsData.value[1].data = mkdata.data[1].child.imgnum;
  846. //模块3农业天地
  847. newsData.value[2].data = mkdata.data[2].child.imgnum;
  848. newsData.value[2].data2 = mkdata.data[2].child.textnum;
  849. //模块4美丽乡村
  850. newsData.value[3].data = mkdata.data[3].child.imgnum;
  851. newsData.value[3].data2 = mkdata.data[3].child.textnum;
  852. //模块5农民之家
  853. newsData.value[4].data = mkdata.data[4].child.imgnum;
  854. newsData.value[4].data2 = mkdata.data[4].child.textnum;
  855. //模块6农业天地 注意,三农资讯网跟其他行星站不一样,你不需要复制我这个
  856. //因为本来二级分类页有9个模块,但是实际应用中只有8个,所以我把本来是模块7
  857. //的地方和现有的模块6合并成1个了
  858. if (mkdata.data[5].child.imgnum.length > 0) {
  859. newsData.value[5].data.push(mkdata.data[5].child.imgnum[0]);
  860. }
  861. newsData.value[5].data2 = mkdata.data[5].child.textnum;
  862. //把模块6的内容放到模块7中一部分
  863. for (let i = 1; i < mkdata.data[5].child.imgnum.length && i <= 5; i++) {
  864. newsData.value[7].data.push(mkdata.data[5].child.imgnum[i]);
  865. }
  866. //模块7农村建设
  867. newsData.value[6].data = mkdata.data[6].child.imgnum;
  868. newsData.value[6].data2 = mkdata.data[6].child.textnum;
  869. //模块8高端资讯
  870. newsData.value[7].data2 = mkdata.data[7].child.imgnum;
  871. } else {
  872. ElMessage.error(mkdata.message)
  873. }
  874. }
  875. // 获取资讯数据 end----------------------------------------->
  876. //3.渲染页面数据 end ---------------------------------------->
  877. //4.设置seo信息 start---------------------------------------->
  878. //4.1 设置seo信息
  879. const setData = await requestDataPromise('/web/getWebsiteCategoryHead', {
  880. method: 'GET',
  881. query: {
  882. 'catid': routeId
  883. },
  884. });
  885. if (setData.code == 200) {
  886. let seoTitle = setData.data.seo_title;
  887. let seoDescription = setData.data.seo_description;
  888. let seoKeywords = setData.data.seo_keywords;
  889. let seoSuffix = setData.data.suffix;
  890. let seoName = setData.data.website_name;
  891. useSeoMeta({
  892. title: seoTitle + "_" + seoName + "_" + seoSuffix,
  893. meta: [
  894. { name: 'description', content: seoDescription + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  895. { name: 'keywords', content: seoKeywords + "_" + seoName + "_" + seoSuffix, tagPriority: 10 },
  896. { name: 'viewport', content: 'width=device-width,initial-scale=1,user-scalable=no',tagPriority: 10 }
  897. ]
  898. });
  899. } else {
  900. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  901. console.log("错误位置:设置分类页面SEO数据")
  902. console.log("后端错误反馈:", setData.message)
  903. console.log("SSR waring ---------- SSR waring ---------- SSR waring ---------->")
  904. }
  905. //4.设置seo信息 end---------------------------------------->
  906. </script>
  907. <style lang="less" scoped>
  908. @import '@/assets/css/class.less';
  909. </style>
  910. <style lang="less" scoped>
  911. @media screen and (min-width:801px){/*ipad_phone*/
  912. .part_1{display:none;}
  913. .zixuntuijian .innerLeft .zixunTop .zixunRight .towPic .picBox span{display:none;}
  914. }
  915. @media screen and (max-width:800px){/*ipad_phone*/
  916. .farmingPartOne{height:auto;overflow:hidden; }
  917. .farmingPartOne .inner .innerLeft{height:auto;overflow:hidden;width:100%;}
  918. .innerLeft>.title{width:100%;}
  919. .farmingPartOne .inner .innerLeft .leftTop{width:100%;margin:0px auto 10px;height:auto;}
  920. .farmingPartOne .inner .innerLeft .leftTop .leftTopPhoto{height:55vw; overflow:hidden;margin:15px auto 17px; border-radius:10px; width:100%;}
  921. .farmingPartOne .inner .innerLeft .leftTop .leftTopPhoto img {width:100%;height:100%;display:block;}
  922. .farmingPartOne .inner .innerLeft .leftTop .leftTopPhoto span{width:100%;box-sizing:border-box;font-size:16px;}
  923. .farmingPartOne .inner .innerLeft .leftTop > ul.left{
  924. margin:7px 0px 0px;width:100%;height:123px;
  925. }
  926. .farmingPartOne .inner .innerLeft .leftTop > ul.left > li{
  927. width:100%; font-size:16px;
  928. display:none;
  929. }
  930. .farmingPartOne .inner .innerLeft .leftTop > ul.left > li:nth-of-type(-n+5){
  931. display: block;
  932. }
  933. .innerLeft>.title>h3{border-bottom:solid 1px #D9D9D9;line-height:50px;height:50px;}
  934. .innerLeft>.title>h3 a{font-size:18px;color: #49a769;float:left;height:100%;line-height:50px;
  935. border-bottom:solid 3px #49a769;box-sizing:border-box;
  936. }
  937. .farmingPartOne .inner .innerLeft .leftTop > ul.left > li em{border-radius:0px;width:6px;height:6px;
  938. background:#E6E6E6;}
  939. .farmingPartOne .inner .innerLeft .leftBottom{display:none;}
  940. .innerRight{width:100%;}
  941. .farmingPartOne .inner {height:auto;}
  942. .farmingPartOne .inner .innerRight .rightList{min-height:344px; height:auto;margin:15px auto 6px;}
  943. .innerRight>.title>h3{border-bottom:solid 1px #D9D9D9;line-height:50px;height:50px;margin:6px auto 0px; }
  944. .innerRight>.title>h3 a{font-size:18px;color: #49a769;float:left;height:100%;line-height:50px;
  945. border-bottom:solid 3px #49a769;box-sizing:border-box; }
  946. .farmingPartOne .inner .innerRight .rightList > li:nth-of-type(1){
  947. height:55vw;overflow:hidden;border-radius:10px;
  948. position:relative;float:none;margin-bottom:24px;
  949. >a{width:100%;height:100%;display:block;}
  950. >a img{width:100%;height:100%;display:block;float:none;}
  951. p>a{
  952. position:absolute;width:100%;box-sizing:border-box;padding:0px 10px;
  953. height:50px;line-height:50px;font-size:16px;color:#fff;
  954. left:0px;bottom:0px;background:linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000);
  955. word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
  956. }
  957. }
  958. .farmingPartOne .inner .innerRight .rightList > li:nth-of-type(n+2){
  959. overflow:hidden;margin-bottom:19px;
  960. line-height:22px;height:22px;
  961. img{display:none;}
  962. p{display:block;width:100%;line-height:22px;height:22px;margin-bottom:22px;-webkit-line-clamp:1;box-sizing:border-box;padding:0;}
  963. p a{width:100%;line-height:22px;height:22px;font-size:16px;font-weight:normal;
  964. display:block;text-indent:14px;position:relative;
  965. word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;}
  966. p a::before{
  967. content:"";
  968. position:absolute;
  969. left:0px;top:8px;
  970. width: 6px;
  971. height: 6px;
  972. background: #E6E6E6;
  973. }
  974. }
  975. .farmingPartOne .inner .innerRight .rightList > li:nth-last-of-type(1){margin-bottom:0px;}
  976. .farmingPartOne .inner .innerRight .rightList > li:nth-of-type(n+5){display:none;}
  977. .farmingPartTwo{height:auto;width:92%;margin:10px auto 0;}
  978. .farmingPartTwo .inner{width:100%;height:auto;}
  979. .farmingPartTwo .inner > .farmer > .title > h3{font-size:18px;border-bottom:solid 1px #D9D9D9;line-height:50px;height:50px;}
  980. .farmingPartTwo .inner > .farmer > .title > h3 a{font-size:18px;color: #49a769;float:left;height:100%;line-height:50px;
  981. border-bottom:solid 3px #49a769;box-sizing:border-box; }
  982. .farmingPartTwo .inner > .farmer{width:100%;margin:0px auto;float:none;height:auto;}
  983. .farmingPartTwo .inner > .farmer > .title{width:100%;}
  984. .farmingPartTwo .inner > .farmer .PartTwoPhoto{
  985. width:100%;height:55vw;overflow:hidden;border-radius:10px;margin:15px auto 0px;
  986. >div{display:block;width:100%;height:100%;}
  987. a {display:block;width:100%;height:100%;}
  988. img {display:block;width:100%;height:100%;}
  989. span {display:block;width:100%;font-size:16px;}
  990. }
  991. .farmingPartTwo .inner > .farmer .PartTwoList{
  992. width:100%;height:124px;padding-top:0px;overflow:hidden;margin:24px auto 0px;
  993. box-shadow:0px 0px 0px rgba(0,0,0,0);
  994. }
  995. .farmingPartTwo .inner > .farmer .PartTwoList> li{
  996. width:100%;height:22px;line-height:22px;
  997. font-size:16px;margin-bottom:19px;font-weight:normal;
  998. display:none;
  999. em{border-radius:0px; margin:9px 9px 0px 0px;float:left;width:6px;height:6px;}
  1000. a{display:block; line-height:22px;height:22px;font-weight:normal;box-sizing:border-box;padding:0;
  1001. word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
  1002. }
  1003. }
  1004. .farmingPartTwo .inner > .farmer .PartTwoList> li:nth-of-type(-n+3){
  1005. display:block;
  1006. }
  1007. .farmingPartTwo .inner > .farmer .PartTwoList> li:nth-of-type(3){
  1008. margin-bottom:0px;
  1009. }
  1010. .farmingPartTwo .inner > .farmer:nth-of-type(2) > .title{ margin-top:5px; }
  1011. .farmingPartTwo .inner > .farmer:nth-of-type(3) > .title{margin-top:6px; }
  1012. .zixuntuijian{width:100%;height:auto;
  1013. .innerLeft .zixunTop .zixunLeft > .title > h3{font-size:18px;border-bottom:solid 1px #D9D9D9;line-height:50px;height:50px;}
  1014. .innerLeft .zixunTop .zixunLeft > .title > h3 a{font-size:18px;color: #49a769;float:left;height:100%;line-height:50px;
  1015. border-bottom:solid 3px #49a769;box-sizing:border-box; }
  1016. .innerLeft{width:100%; }
  1017. .zixunLeft{float:none;margin:0px auto;width:100%;}
  1018. }
  1019. .zixuntuijian .innerLeft .zixunTop .zixunLeft{width:100%;float:none;height:auto;}
  1020. .zixuntuijian .innerLeft .zixunTop .zixunLeft > .title{margin-top:5px; line-height:33px;width:100%; }
  1021. .zixuntuijian .innerLeft .zixunTop .zixunLeft .photo_text{width:100%; min-height:330px;}
  1022. .zixuntuijian .innerLeft .zixunTop .zixunLeft .photo_text li:nth-of-type(1){
  1023. margin:15px auto 24px;
  1024. width:100%;height:55vw;display:block;border-radius:10px;
  1025. article{display:block;width:100%;height:100%;position:relative;}
  1026. article>a{display:block;width:100%;height:100%;}
  1027. img{display:block;width:100%;height:100%;}
  1028. p{display:none;}
  1029. em{display:none;}
  1030. article>div{float:none;width:100%;height:100%;padding:0;background:rgba(0,0,0,0);
  1031. position:absolute;left:0px;top:0px;}
  1032. h5{float:none;width:100%!important;height:100%!important;padding:0;background:rgba(0,0,0,0);
  1033. position:absolute;left:0px;top:0px; }
  1034. h5>a{position:absolute;width:100%;height:50px;line-height:50px;font-size:16px;color:#fff;
  1035. left:0px; bottom:0px;padding:0px 13px;box-sizing:border-box; font-weight:normal;
  1036. background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000);
  1037. }
  1038. }
  1039. .zixuntuijian .innerLeft .zixunTop{height:auto;overflow:hidden;}
  1040. .zixuntuijian .innerLeft .zixunTop .zixunLeft .photo_text li:nth-of-type(n+2){
  1041. line-height:22px;height:22px;font-weight:normal;font-size:16px;margin-bottom:19px;
  1042. width:100%;
  1043. em{width:6px;height:6px;border-radius:0px;float:left;margin:8px 6px 0px 0px;}
  1044. a{line-height:22px;height:22px;display:block;
  1045. word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
  1046. }
  1047. }
  1048. .zixuntuijian .innerLeft .zixunTop .zixunRight{width:100%;height:auto;}
  1049. .zixuntuijian .innerLeft .zixunTop .zixunRight > .title{width:100%;margin-top:6px; }
  1050. .zixuntuijian .innerLeft .zixunTop .zixunRight > .title > h3{font-size:18px;
  1051. border-bottom:solid 1px #D9D9D9;line-height:50px;height:50px;
  1052. }
  1053. .zixuntuijian .innerLeft .zixunTop .zixunRight > .title > h3 a{
  1054. font-size:18px;color: #49a769;float:left;height:100%;line-height:50px;
  1055. border-bottom:solid 3px #49a769;box-sizing:border-box;
  1056. }
  1057. .zixuntuijian .innerLeft .zixunTop .zixunRight .towPic{width:100%;height:auto;margin:15px auto 25px;}
  1058. .zixuntuijian .innerLeft .zixunTop .zixunRight .towPic .picBox{display:none;}
  1059. .zixuntuijian .innerLeft .zixunTop .zixunRight .towPic .picBox:nth-of-type(1){display:block;
  1060. width:100%;height:55vw;border-radius:10px;overflow:hidden;margin:0;
  1061. div{display:block;width:100%;height:100%;}
  1062. a{display:block;width:100%;height:100%;position:relative;}
  1063. img{display:block;width:100%;height:100%;}
  1064. span{ position: absolute;
  1065. width: 100%;
  1066. height: 50px;
  1067. line-height: 50px;
  1068. font-size: 16px;
  1069. color: #fff;
  1070. left: 0px;
  1071. bottom: 0px;
  1072. padding: 0px 13px;
  1073. box-sizing: border-box;
  1074. font-weight: normal;
  1075. font-size:16px;
  1076. background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000);
  1077. }
  1078. }
  1079. .zixuntuijian .innerLeft .zixunTop .zixunRight .photo_text li{
  1080. line-height:22px;height:22px;font-weight:normal;font-size:16px;margin-bottom:19px;
  1081. width:100%;
  1082. em{width:6px;height:6px;border-radius:0px;float:left;margin:8px 6px 0px 0px; }
  1083. }
  1084. .zixuntuijian .innerLeft .zixunBottom{width:100%;height:auto;overflow:hidden;display:none;}
  1085. .zixuntuijian .innerRight .information{width:100%; min-height:331px;margin:15px auto 10px;}
  1086. .zixuntuijian .innerRight .information li:nth-of-type(1){
  1087. width:100%;height:55vw;display:block;border-radius:10px;overflow:hidden;
  1088. position:relative;margin-bottom:23px;
  1089. a{display:block;width:100%;height:100%;}
  1090. img{display:block;width:100%;height:100%;}
  1091. .text{position:absolute;width:100%;height:100%;left:0px;top:0px;
  1092. padding:0;background:rgba(0,0,0,0);
  1093. }
  1094. h5{position:absolute;width:100%;height:100%;left:0px;top:0px;
  1095. padding:0;background:rgba(0,0,0,0);display:block;
  1096. }
  1097. p{display:none;}
  1098. h5>a{position:absolute;width:100%;height:50px;line-height:50px;font-size:16px;color:#fff;
  1099. left:0px; bottom:0px;padding:0px 13px; box-sizing:border-box;font-weight:normal;
  1100. background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000000);
  1101. word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
  1102. }
  1103. }
  1104. .zixuntuijian .innerRight .information li:nth-of-type(n+2){
  1105. height:22px;line-height:22px;margin-bottom:19px;
  1106. display:block;width:100%;
  1107. >a{display:none;}
  1108. .text{display:block;width:100%;height:100%;padding:0;}
  1109. h5{display:block;width:100%;height:100%;padding:0;}
  1110. h5 a{height:22px;line-height:22px;display:block;position:relative;
  1111. font-size:16px;font-weight:normal; text-indent:12px;width:100%;
  1112. word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
  1113. }
  1114. h5 a::after{content: '';display: block ;
  1115. background:#d9d9d9;position:absolute;
  1116. left:0px;top:8px;
  1117. width: 6px;
  1118. height: 6px;
  1119. }
  1120. p{display:none;}
  1121. // a{line-height:22px;height:22px;display:block;
  1122. // word-break: keep-all; white-space: nowrap;overflow:hidden;text-overflow:ellipsis;
  1123. // }
  1124. }
  1125. .zixuntuijian .innerRight .information li:nth-last-of-type(1){
  1126. margin-bottom:0px;
  1127. }
  1128. .zixuntuijian .innerLeft .zixunTop .zixunRight .photo_text{ height:104px;}
  1129. .part_1{width:100%;height:11px;}
  1130. .add_height{height:44vw!important; }
  1131. .phone_head_1{margin-top:26px!important; }
  1132. }
  1133. </style>